public class hw8 {
    public static void main(String[] args) {
        int [] arr = {1,2,52,7,9,10};
        System.out.println(check(arr));

    }
    public static boolean check(int[] arr) {
        for (int i = 0; i < arr.length - 2 ; i++) {
            if(arr[i] % 2 == 1 && arr[i + 1] % 2 == 1 && arr[i + 2] % 2 == 1) {
                return true;
            }
        }
        return false;

    }
}
